﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UserInfoControl.ascx.cs" Inherits="UserInfoControl" %>
<%@ Register Assembly="RadCalendar.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadInput.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>

<table border="0" cellpadding="2" cellspacing="0" class="Verdana8Black" style="width: 100%">
    <tr>
        <td style="width: 110px">
        </td>
        <td>
            <asp:Label ID="lblErr" runat="server" Font-Bold="True" Visible="False"></asp:Label></td>
    </tr>
    <tr>
        <td style="width: 110px">
            Họ tên:</td>
        <td>
            <asp:TextBox ID="txtFullName" runat="server" CssClass="txt" MaxLength="255" Width="150px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFullName"
                ErrorMessage="(*)" ValidationGroup="UpdateInfo"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td style="width: 110px">
            Ngày sinh:</td>
        <td>
            <rad:RadDatePicker ID="rdpDateOfBirth" runat="server" Skin="Office2007">
                <Calendar Skin="Vista">
                </Calendar>
                <DateInput Skin="Vista">
                </DateInput>
            </rad:RadDatePicker>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="rdpDateOfBirth"
                ErrorMessage="(*)" ValidationGroup="UpdateInfo"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td style="width: 110px">
            Địa chỉ:</td>
        <td>
            <asp:TextBox ID="txtAddress" runat="server" CssClass="txt" MaxLength="255" Width="300px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtAddress"
                ErrorMessage="(*)" ValidationGroup="UpdateInfo"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td style="width: 110px">
            CMND:</td>
        <td>
            <rad:RadMaskedTextBox ID="txtIDCard" runat="server" Mask="####-#####" Skin="Office2007"
                Width="150px">
            </rad:RadMaskedTextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtIDCard"
                ErrorMessage="(*)" ValidationGroup="UpdateInfo"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td style="width: 110px">
            Email:</td>
        <td>
            <asp:TextBox ID="txtEmail" runat="server" CssClass="txt" MaxLength="255" Width="150px"></asp:TextBox>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                ErrorMessage="Email không hợp lệ" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                ValidationGroup="UpdateInfo"></asp:RegularExpressionValidator></td>
    </tr>
    <tr>
        <td style="width: 110px">
        </td>
        <td>
            <asp:Button ID="btnUpdate" runat="server" CssClass="QuickButton" OnClick="btnUpdate_Click"
                Text="Cập nhật" ValidationGroup="UpdateInfo" /></td>
    </tr>
</table>
